//
//  HgCollectionViewCell.m
//  NewCollectionView
//
//  Created by lanou3g on 15/9/15.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "HgCollectionViewCell.h"

@implementation HgCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
        self.imageView.frame = CGRectMake(0, 0, 160, 160);
//        self.imageView.backgroundColor = [UIColor redColor];
//        self.imageView.layer.borderWidth = 5;
//        self.imageView.layer.borderColor = [UIColor redColor].CGColor;
//        self.imageView.layer.cornerRadius = 5;
        self.weatherlable = [[UILabel alloc] initWithFrame:CGRectMake(0, kWidth/3.2, self.imageView.frame.size.width, kWidth/12.5)];
        self.weatherlable.textColor = [UIColor colorWithRed:0.6 green:0.6 blue:0.3 alpha:1];
        self.weatherlable.font =  [UIFont fontWithName:@"TrebuchetMS" size:18];
        self.weatherlable.textAlignment = NSTextAlignmentCenter;
        [self.imageView addSubview:self.weatherlable];
        [self.contentView addSubview:self.imageView];
      // self.imageView.clipsToBounds = YES;
        
    }
    return self;
}

@end
